// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import echarts from 'echarts'
import "babel-polyfill"
if (!!window.ActiveXObject || "ActiveXObject" in window)
{

  Vue.prototype.isIe = true
}
else {

  Vue.prototype.isIe = false
}
Vue.prototype.$echarts = echarts
import axios from 'axios'//引入axios

Vue.prototype.$axios = axios;//把axios挂载到vue上
axios.defaults.baseURL= 'http://www.stoneblogshare.com';
//axios.defaults.baseURL= 'http://127.0.0.1:7070';

Vue.config.productionTip = false
axios.interceptors.request.use(res => {
  res.headers.token = localStorage.getItem('token');
  return res;
});
import GeminiScrollbar from 'vue-gemini-scrollbar'
Vue.use(GeminiScrollbar)
import './blog/plugin/layui/css/layui.css'
import './blog/css/common.css'
import './blog/plugin/prism/prism.css'
import './blog/plugin/layui/layui'
import './blog/plugin/jquery/jquery-3.3.1.min.js'
import Prism from './blog/plugin/prism/prism.js' // 要提醒一下，你下载的JS文件末尾加上一句 export default Prism
import store from './vuex/store'
import vuescroll from 'vuescroll';
import 'vuescroll/dist/vuescroll.css';
Vue.use(vuescroll);
new Vue({
  el: '#app',
  store,
  router,

  components: { App },
  template: '<App/>'
})
store.commit('websocket/initWebsocket')

